/* 
* 需求：
* 响应表格，隔行变色，点击变色
*/
const http = require('http')
const fs = require('fs')

const server = http.createServer((request, response) => {
  // 读取文件内容
  const html = fs.readFileSync('./tempFile/12-响应文件.html')
  response.end(html)
})

server.listen(9000, () => {
  console.log(`
      _   _            _     
     | \\ | | ___   ___ | |  ___
     |  \\| |/ _ \\ / _ \\| |/ (_) \\
     | |\\  | (_) | (_) | | —————
     |_| \\_|\\___/ \\___/|_|\\ ____
    
    ✨ Node.js Server ✨ is up and running!
    Visit: http://localhost:9000
  `);
})